/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsProductPropertyBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsProductPropertyBL 
    {
    	#region Private Variables
		cmsProductPropertyDAL objcmsProductPropertyDAL;
		#endregion
		
        #region Public Constructors
        public cmsProductPropertyBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsProductPropertyDAL=new cmsProductPropertyDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsProductPropertyDO objcmsProductPropertyDO)
        {
            return objcmsProductPropertyDAL.Insert(objcmsProductPropertyDO);
        }

        public int Update(cmsProductPropertyDO objcmsProductPropertyDO)
        {
             return objcmsProductPropertyDAL.Update(objcmsProductPropertyDO);

        }
        public int UpdateOrInsert(cmsProductPropertyDO objcmsProductPropertyDO)
        {
            return objcmsProductPropertyDAL.UpdateOrInsert(objcmsProductPropertyDO);
        }
        public int UpdateOrInsertExcel(string productCode, string propertyCode, string value)
        {
            return objcmsProductPropertyDAL.UpdateOrInsertExcel(productCode, propertyCode, value);
        }
        public int Delete(cmsProductPropertyDO objcmsProductPropertyDO)
        {
             return objcmsProductPropertyDAL.Delete(objcmsProductPropertyDO);

        }

         public int DeleteAll()
        {
             return objcmsProductPropertyDAL.DeleteAll();
        }

        public cmsProductPropertyDO Select(cmsProductPropertyDO objcmsProductPropertyDO)
        {
            return objcmsProductPropertyDAL.Select(objcmsProductPropertyDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsProductPropertyDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsProductPropertyDAL.SelectAll();
        }
        public DataTable SelectByProductID(int productID)
        {
            return objcmsProductPropertyDAL.SelectByProductID(productID);
        }

        public int DeleteByProductID(int productID)
        {
            return objcmsProductPropertyDAL.DeleteByProductID(productID);
        }
        public DataTable SelectByProductIDAndCate(int productID, int productCategoryID)
        {
            return objcmsProductPropertyDAL.SelectByProductIDAndCate(productID, productCategoryID);
        }
        public cmsProductPropertyDO SelectByFK(cmsProductPropertyDO objcmsProductPropertyDO)
        {
            return objcmsProductPropertyDAL.SelectByFK(objcmsProductPropertyDO);
        }
#endregion          
        public DataTable SelectByProductAndParent(int productID, int parentID)
        {
            return objcmsProductPropertyDAL.SelectByProductAndParent(productID, parentID);
        }
    }

}
